class CommissionPolicyGroupTests extends GroovyTestCase {

    void testSearchCommissionPolicyByProduct() {
        CommissionPolicyGroup shopAssistantCPG = CommissionPolicyGroup.get(2)
        Product photoPrint1 = Product.get(3)
        Product photoModification = Product.get(1)
        PhotoFrame photoFrame1 = PhotoFrame.list()[0]

        assertNotNull shopAssistantCPG.searchCommissionPolicyByProduct(photoFrame1)

        assertNotNull shopAssistantCPG.searchCommissionPolicyByProduct(photoPrint1)

        assertNull shopAssistantCPG.searchCommissionPolicyByProduct(photoModification)
    }
}
